webpackJsonp([5],{

/***/ "IHWD":
/***/ (function(module, exports) {

module.exports = "query fetch {\n  category: yj_mail_list_zjAggregate @_(get: \"groupedBy.group\") {\n    groupedBy {\n      group {\n        keys\n        values @_(map: \"count\") {\n          count\n        }\n      }\n    }\n  }\n}\n"

/***/ }),

/***/ "Rn5y":
/***/ (function(module, exports) {

module.exports = "query fetch {\n  category: yj_mail_list_dwAggregate @_(get: \"groupedBy.government\") {\n    groupedBy {\n      government {\n        keys\n        values @_(map: \"groupedBy.ranks_category\") {\n          count\n          groupedBy {\n            ranks_category {\n              keys\n              values @_(map: \"count\") {\n                count\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  pie:yj_mail_list_dwAggregate @_(get: \"groupedBy.ranks_category\"){\n    groupedBy{\n      ranks_category {\n        keys\n        values @_(map: \"count\") {\n          count\n        }\n      }\n    }\n  }\n}\n"

/***/ }),

/***/ "eT2I":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/apps/analysis/emergency-material.gql
var emergency_material = __webpack_require__("jFHU");
var emergency_material_default = /*#__PURE__*/__webpack_require__.n(emergency_material);

// EXTERNAL MODULE: ./node_modules/_lodash@4.17.11@lodash/lodash.js
var lodash = __webpack_require__("psq8");
var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// EXTERNAL MODULE: ./node_modules/_echarts@3.8.5@echarts/lib/echarts.js
var echarts = __webpack_require__("+Ky8");
var echarts_default = /*#__PURE__*/__webpack_require__.n(echarts);

// EXTERNAL MODULE: ./node_modules/_echarts@3.8.5@echarts/theme/macarons.js
var macarons = __webpack_require__("TW58");
var macarons_default = /*#__PURE__*/__webpack_require__.n(macarons);

// EXTERNAL MODULE: ./node_modules/_echarts@3.8.5@echarts/lib/chart/line.js
var line = __webpack_require__("feM/");
var line_default = /*#__PURE__*/__webpack_require__.n(line);

// EXTERNAL MODULE: ./node_modules/_echarts@3.8.5@echarts/lib/chart/pie.js
var chart_pie = __webpack_require__("bGGv");
var pie_default = /*#__PURE__*/__webpack_require__.n(chart_pie);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/apps/analysis/emergency-material.vue


//
//
//
//
//
//
//
//
//
//
//









var region = [{
  D_text: '区内',
  D_code: 1
}, {
  D_text: '区外',
  D_code: 2
}];
var government = [{
  D_text: '是',
  D_code: 1
}, {
  D_text: '否',
  D_code: 2
}];
/* harmony default export */ var analysis_emergency_material = ({
  data: function data() {
    return {
      categoryList: [],
      chartOptions: {
        tooltip: {
          trigger: 'axis'
        },
        legend: {
          data: ['政府', '企业'],
          align: 'right'
        },
        xAxis: [{
          name: '物资类别',
          nameLocation: 'center',
          nameGap: '30',
          boundaryGap: true,
          type: 'category',
          data: [],
          axisTick: {
            alignWithLabel: true
          }
        }],
        yAxis: [{
          name: '物资数量',
          type: 'value'
        }],
        series: [{
          name: '政府',
          type: 'bar',
          data: []
        }]
      },
      chartPieOption: {
        tooltip: {
          trigger: 'item',
          formatter: '{a} <br/>{b} : {c} ({d}%)'
        },
        legend: {
          orient: 'vertical',
          x: 'right',
          y: 'top',
          data: []
        },
        series: [{
          name: '物资占比',
          type: 'pie',
          radius: ['50%', '70%'],
          center: ['40%', '50%'],
          data: [],
          label: {
            normal: {
              show: false
            }
          },
          labelLine: {
            normal: {
              show: false
            }
          }
        }]
      }
    };
  },

  methods: {
    renderCard1: function renderCard1(category) {
      var _this = this;

      var obj = lodash_default.a.zipObject(category.keys, category.values);
      var fn = function fn(category, name) {
        var res = {
          name: name,
          type: 'bar',
          data: []
        };
        if (category) {
          var data = _this.categoryList.map(function (item) {
            var index = category.keys.indexOf(item.D_code);
            return index > -1 ? category.values[index] : 0;
          });
          res.data = data;
        }
        return res;
      };
      this.chartOptions.series = [fn(obj['1'], '政府'), fn(obj['2'], '企业')];
      this.chart.setOption(this.chartOptions);
    },
    renderCard2: function renderCard2(pie) {
      var data = this.categoryList.map(function (item) {
        var index = pie.keys.indexOf(item.D_code);
        return {
          name: item.D_text,
          value: index > -1 ? pie.values[index] : 0
        };
      });
      this.chartPieOption.series[0].data = data;
      this.chartPie.setOption(this.chartPieOption);
    },
    init: function init() {
      var _this2 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var legend;
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return commonApi["a" /* commonApi */].dictionary('material_category');

              case 2:
                _this2.categoryList = _context.sent;
                legend = _this2.categoryList.map(function (v) {
                  return v.D_text;
                });

                _this2.chartOptions.xAxis[0].data = legend;
                _this2.chartPieOption.legend.data = legend;
                _this2.fetchData();

              case 7:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this2);
      }))();
    },
    fetchData: function fetchData() {
      var _this3 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
        var _ref, category, pie;

        return regenerator_default.a.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.next = 2;
                return commonApi["a" /* commonApi */].gql(emergency_material_default.a);

              case 2:
                _ref = _context2.sent;
                category = _ref.category;
                pie = _ref.pie;

                _this3.renderCard1(category);
                _this3.renderCard2(pie);

              case 7:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, _this3);
      }))();
    }
  },
  activated: function activated() {
    this.chart = echarts_default.a.init(this.$refs.chart, 'macarons');
    this.chartPie = echarts_default.a.init(this.$refs.chartPie, 'macarons');
    this.init();
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-2d0db736","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/apps/analysis/emergency-material.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('yt-card',{attrs:{"title":"物资占比统计"}},[_c('div',{ref:"chartPie",staticStyle:{"height":"300px"}})]),_vm._v(" "),_c('yt-card',{attrs:{"title":"物资类别统计"}},[_c('div',{ref:"chart",staticStyle:{"height":"400px"}})])],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var apps_analysis_emergency_material = (esExports);
// CONCATENATED MODULE: ./src/apps/analysis/emergency-material.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  analysis_emergency_material,
  apps_analysis_emergency_material,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var src_apps_analysis_emergency_material = (Component.exports);

// EXTERNAL MODULE: ./src/apps/analysis/emergency-ranks.gql
var emergency_ranks = __webpack_require__("Rn5y");
var emergency_ranks_default = /*#__PURE__*/__webpack_require__.n(emergency_ranks);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/apps/analysis/emergency-ranks.vue


//
//
//
//
//
//
//
//
//
//
//









var emergency_ranks_region = [{
  D_text: '区内',
  D_code: 1
}, {
  D_text: '区外',
  D_code: 2
}];
var emergency_ranks_government = [{
  D_text: '是',
  D_code: 1
}, {
  D_text: '否',
  D_code: 2
}];
/* harmony default export */ var analysis_emergency_ranks = ({
  data: function data() {
    return {
      categoryList: [],
      chartOptions: {
        grid: {
          left: '30%'
        },
        tooltip: {
          trigger: 'axis'
        },
        legend: {
          data: ['政府', '企业'],
          align: 'right'
        },
        yAxis: [{
          name: '物资类别',
          nameLocation: 'end',
          boundaryGap: true,
          type: 'category',
          data: [],
          axisTick: {
            alignWithLabel: true
          }
        }],
        xAxis: [{
          name: '物资数量',
          nameLocation: 'center',
          nameGap: '30',
          type: 'value'
        }],
        series: [{
          name: '政府',
          type: 'bar',
          data: []
        }]
      },
      chartPieOption: {
        tooltip: {
          trigger: 'item',
          formatter: '{a} <br/>{b} : {c} ({d}%)'
        },
        legend: {
          orient: 'vertical',
          x: 'right',
          y: 'top',
          data: []
        },
        series: [{
          name: '队伍占比',
          type: 'pie',
          radius: ['50%', '70%'],
          center: ['40%', '50%'],
          data: [],
          label: {
            normal: {
              show: false
            }
          },
          labelLine: {
            normal: {
              show: false
            }
          }
        }]
      }
    };
  },

  methods: {
    renderCard1: function renderCard1(category) {
      var _this = this;

      var obj = lodash_default.a.zipObject(category.keys, category.values);
      var fn = function fn(category, name) {
        var res = {
          name: name,
          type: 'bar',
          data: []
        };
        if (category) {
          var data = _this.categoryList.map(function (item) {
            var index = category.keys.indexOf(item.D_code);
            return index > -1 ? category.values[index] : 0;
          });
          res.data = data;
        }
        return res;
      };
      this.chartOptions.series = [fn(obj['1'], '政府'), fn(obj['2'], '企业')];
      this.chart.setOption(this.chartOptions);
    },
    renderCard2: function renderCard2(pie) {
      var data = this.categoryList.map(function (item) {
        var index = pie.keys.indexOf(item.D_code);
        return {
          name: item.D_text,
          value: index > -1 ? pie.values[index] : 0
        };
      });
      this.chartPieOption.series[0].data = data;
      this.chartPie.setOption(this.chartPieOption);
    },
    init: function init() {
      var _this2 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var legend;
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return commonApi["a" /* commonApi */].dictionary('ranks_category');

              case 2:
                _this2.categoryList = _context.sent;
                legend = _this2.categoryList.map(function (v) {
                  return v.D_text;
                });

                _this2.chartOptions.yAxis[0].data = legend;
                _this2.chartPieOption.legend.data = legend;
                _this2.fetchData();

              case 7:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this2);
      }))();
    },
    fetchData: function fetchData() {
      var _this3 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
        var _ref, category, pie;

        return regenerator_default.a.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.next = 2;
                return commonApi["a" /* commonApi */].gql(emergency_ranks_default.a);

              case 2:
                _ref = _context2.sent;
                category = _ref.category;
                pie = _ref.pie;

                _this3.renderCard1(category);
                _this3.renderCard2(pie);

              case 7:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, _this3);
      }))();
    }
  },
  activated: function activated() {
    this.chart = echarts_default.a.init(this.$refs.chart, 'macarons');
    this.chartPie = echarts_default.a.init(this.$refs.chartPie, 'macarons');
    this.init();
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0998711c","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/apps/analysis/emergency-ranks.vue
var emergency_ranks_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('yt-card',{attrs:{"title":"队伍类别统计"}},[_c('div',{ref:"chart",staticStyle:{"height":"400px"}})]),_vm._v(" "),_c('yt-card',{attrs:{"title":"队伍占比统计"}},[_c('div',{ref:"chartPie",staticStyle:{"height":"300px"}})])],1)}
var emergency_ranks_staticRenderFns = []
var emergency_ranks_esExports = { render: emergency_ranks_render, staticRenderFns: emergency_ranks_staticRenderFns }
/* harmony default export */ var apps_analysis_emergency_ranks = (emergency_ranks_esExports);
// CONCATENATED MODULE: ./src/apps/analysis/emergency-ranks.vue
var emergency_ranks_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var emergency_ranks___vue_template_functional__ = false
/* styles */
var emergency_ranks___vue_styles__ = null
/* scopeId */
var emergency_ranks___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var emergency_ranks___vue_module_identifier__ = null
var emergency_ranks_Component = emergency_ranks_normalizeComponent(
  analysis_emergency_ranks,
  apps_analysis_emergency_ranks,
  emergency_ranks___vue_template_functional__,
  emergency_ranks___vue_styles__,
  emergency_ranks___vue_scopeId__,
  emergency_ranks___vue_module_identifier__
)

/* harmony default export */ var src_apps_analysis_emergency_ranks = (emergency_ranks_Component.exports);

// EXTERNAL MODULE: ./src/apps/analysis/emergency-expert.gql
var emergency_expert = __webpack_require__("IHWD");
var emergency_expert_default = /*#__PURE__*/__webpack_require__.n(emergency_expert);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/apps/analysis/emergency-expert.vue


//
//
//
//
//
//
//
//
//
//
//








/* harmony default export */ var analysis_emergency_expert = ({
  data: function data() {
    return {
      categoryList: [],
      chartOptions: {
        tooltip: {
          trigger: 'axis'
        },
        xAxis: [{
          name: '专家组别',
          nameLocation: 'center',
          nameGap: '30',
          boundaryGap: true,
          type: 'category',
          data: [],
          axisTick: {
            alignWithLabel: true
          }
        }],
        yAxis: [{
          name: '专家人数',
          type: 'value'
        }],
        series: [{
          name: '政府',
          type: 'bar',
          data: []
        }]
      },
      chartPieOption: {
        tooltip: {
          trigger: 'item',
          formatter: '{a} <br/>{b} : {c} ({d}%)'
        },
        legend: {
          orient: 'vertical',
          x: 'right',
          y: 'top',
          data: []
        },
        series: [{
          name: '物资占比',
          type: 'pie',
          radius: ['50%', '70%'],
          center: ['40%', '50%'],
          data: [],
          label: {
            normal: {
              show: false
            }
          },
          labelLine: {
            normal: {
              show: false
            }
          }
        }]
      }
    };
  },

  methods: {
    renderCard1: function renderCard1(category) {
      var data = this.categoryList.map(function (item) {
        var index = category.keys.indexOf(item.D_code);
        return {
          name: item.D_text,
          value: index > -1 ? category.values[index] : 0
        };
      });
      this.chartOptions.series[0].data = data;
      this.chart.setOption(this.chartOptions);
    },
    renderCard2: function renderCard2(pie) {
      var data = this.categoryList.map(function (item) {
        var index = pie.keys.indexOf(item.D_code);
        return {
          name: item.D_text,
          value: index > -1 ? pie.values[index] : 0
        };
      });
      this.chartPieOption.series[0].data = data;
      this.chartPie.setOption(this.chartPieOption);
    },
    init: function init() {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var legend;
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return commonApi["a" /* commonApi */].dictionary('expert_group');

              case 2:
                _this.categoryList = _context.sent;
                legend = _this.categoryList.map(function (v) {
                  return v.D_text;
                });

                _this.chartOptions.xAxis[0].data = legend;
                _this.chartPieOption.legend.data = legend;
                _this.fetchData();

              case 7:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    },
    fetchData: function fetchData() {
      var _this2 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
        var _ref, category;

        return regenerator_default.a.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.next = 2;
                return commonApi["a" /* commonApi */].gql(emergency_expert_default.a);

              case 2:
                _ref = _context2.sent;
                category = _ref.category;

                _this2.renderCard1(category);
                _this2.renderCard2(category);

              case 6:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, _this2);
      }))();
    }
  },
  activated: function activated() {
    this.chart = echarts_default.a.init(this.$refs.chart, 'macarons');
    this.chartPie = echarts_default.a.init(this.$refs.chartPie, 'macarons');
    this.init();
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5e90b6ae","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/apps/analysis/emergency-expert.vue
var emergency_expert_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('yt-card',{attrs:{"title":"专家占比统计"}},[_c('div',{ref:"chartPie",staticStyle:{"height":"300px"}})]),_vm._v(" "),_c('yt-card',{attrs:{"title":"专家组别统计"}},[_c('div',{ref:"chart",staticStyle:{"height":"400px"}})])],1)}
var emergency_expert_staticRenderFns = []
var emergency_expert_esExports = { render: emergency_expert_render, staticRenderFns: emergency_expert_staticRenderFns }
/* harmony default export */ var apps_analysis_emergency_expert = (emergency_expert_esExports);
// CONCATENATED MODULE: ./src/apps/analysis/emergency-expert.vue
var emergency_expert_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var emergency_expert___vue_template_functional__ = false
/* styles */
var emergency_expert___vue_styles__ = null
/* scopeId */
var emergency_expert___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var emergency_expert___vue_module_identifier__ = null
var emergency_expert_Component = emergency_expert_normalizeComponent(
  analysis_emergency_expert,
  apps_analysis_emergency_expert,
  emergency_expert___vue_template_functional__,
  emergency_expert___vue_styles__,
  emergency_expert___vue_scopeId__,
  emergency_expert___vue_module_identifier__
)

/* harmony default export */ var src_apps_analysis_emergency_expert = (emergency_expert_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/apps/analysis/emergency.vue
//
//
//
//
//
//
//
//
//
//





/* harmony default export */ var emergency = ({
  components: { mainChartMaterial: src_apps_analysis_emergency_material, mainChartRanks: src_apps_analysis_emergency_ranks, mainChartExpert: src_apps_analysis_emergency_expert }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-3567ef93","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/apps/analysis/emergency.vue
var emergency_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":"应急资源统计","scroll":""}},[_c('main-chart-material'),_vm._v(" "),_c('yt-split'),_vm._v(" "),_c('main-chart-ranks'),_vm._v(" "),_c('yt-split'),_vm._v(" "),_c('main-chart-expert')],1)}
var emergency_staticRenderFns = []
var emergency_esExports = { render: emergency_render, staticRenderFns: emergency_staticRenderFns }
/* harmony default export */ var analysis_emergency = (emergency_esExports);
// CONCATENATED MODULE: ./src/apps/analysis/emergency.vue
var emergency_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var emergency___vue_template_functional__ = false
/* styles */
var emergency___vue_styles__ = null
/* scopeId */
var emergency___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var emergency___vue_module_identifier__ = null
var emergency_Component = emergency_normalizeComponent(
  emergency,
  analysis_emergency,
  emergency___vue_template_functional__,
  emergency___vue_styles__,
  emergency___vue_scopeId__,
  emergency___vue_module_identifier__
)

/* harmony default export */ var apps_analysis_emergency = __webpack_exports__["default"] = (emergency_Component.exports);


/***/ }),

/***/ "jFHU":
/***/ (function(module, exports) {

module.exports = "query fetch {\n  category: yj_relief_materialsAggregate @_(get: \"groupedBy.government\") {\n    groupedBy {\n      government {\n        keys\n        values @_(map: \"groupedBy.type\") {\n          count\n          groupedBy {\n            type {\n              keys\n              values @_(map: \"count\") {\n                count\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  pie:yj_relief_materialsAggregate @_(get: \"groupedBy.type\"){\n    groupedBy{\n      type {\n        keys\n        values @_(map: \"count\") {\n          count\n        }\n      }\n    }\n  }\n}\n"

/***/ })

});